package day11_rellyGame;

public class compute {
    int ATK;
    int DEF;
    int allATK;
    int allDEF;
    compute(){}
    compute(Player p){
        this.ATK= p.atk;
        this.DEF=p.def;
    }
    compute(Weapon w){
        this.ATK= w.atk;
        this.DEF=w.def;
    }
    void all(){
        allATK+=ATK;
        allDEF+=DEF;
    }
    void show(){
        System.out.println("团队总战斗力："+allATK+"\t"+"团队总防御力："+allDEF);
    }

}
